<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_goods', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('classifyID');
            $table->string('title');
            $table->string('thumb')->nullable();
            $table->string('abstract');
            $table->double('price', 10, 2);
            $table->text('tags')->nullable();
            $table->text('content')->nullable();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shop_goods');
    }
}
